<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>
<script>
  var sum = 0;
  for (var i = 1; i <= 100; i++) {
    sum += i;
  }
  console.log(sum);

  var sum1 = 0;
  for (var i = 1; i <= 100; i++) {
    if (i % 2 == 0) {
      sum1 += i;
    }
  }
  console.log(sum1);

  var sum2 = 0;
  for (var i = 1; i <= 100; i++) {
    if (i % 3) {
      sum2 += i;
    }
  }
  console.log(sum2);

  var count = 0;
  for (var i = 10; i <= 99; i++) {
    if (i % 7 == 0) {
      count++;
    }
  }
  console.log(count);

  var count1 = 0;
  for (var i = 100; i <= 999; i++) {
    var g = i % 10;
    var s = parseInt((i / 10) % 10);
    var b = parseInt(i / 100);
    if (g ** 3 + b ** 3 + s ** 3 == i) {
      count1++;
    }
  }
  console.log(count1);
</script>
